package com.stedu.mall.common.service;

import com.stedu.mall.common.bean.Admin;
import com.stedu.mall.common.exception.SteduException;

import java.util.List;

public interface AdminService {
    Admin login (String username, String password) throws SteduException;

    Admin selectById(Integer id);

    boolean update(Admin admin);
    boolean chgPwd(String oldPwd,String newPwd, Integer id) throws SteduException;

    //查询所有管理员
    List<Admin> selectAll(Integer status);

    //禁用
    boolean delete(Integer id);

    //添加
    boolean insert(Admin admin) throws SteduException;
}
